package org.jxht.service.impl;

import org.jxht.dao.MajorDao;
import org.jxht.dto.MajorDto;
import org.jxht.service.MajorServie;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by huang on 2017/3/15 0015.
 */
@Service
public class MajorServiceImpl implements MajorServie {

    @Resource
    MajorDao MajorDao;

    public void insertMajorService(MajorDto dto) {
        MajorDao.insertMajorDao(dto);
    }

    public List queryMajorService(MajorDto dto) {
        return MajorDao.queryMajorDao(dto);
    }

    public MajorDto queryMajorServiceSingle(MajorDto dto) {
        return (MajorDto) MajorDao.queryMajorDao(dto);
    }

    public void updataMajorService(MajorDto dto) {
        MajorDao.updataMajorDao(dto);
    }

    public void deleteMajorService(MajorDto dto) {
        MajorDao.deleteMajorDao(dto);
    }
}
